package com.tsmti.webservice.service;

import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;

/**
 * @Package：service
 * @Class：PimsService
 * @Description： TODO
 * @Author：zcw
 * @Date：Created in 2018/7/9 17:02
 * @Company:
 * @Version：
 * @Modified By:
 */
@WebService
@Path("/")
public interface PimsService {

    /**
     * 调用接口
     * @param trackId 交易代码
     * @param orgId   机构代码
     * @param content 参数内容
     * @param resultType 结果类型
     * @return
     */
    @POST
    @Produces({MediaType.APPLICATION_JSON + ";charset=UTF-8"})
    @Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_HTML,MediaType.APPLICATION_FORM_URLENCODED})
    @Path(value = "/runService")
    String runService(@FormParam("trackId") String trackId,@FormParam("orgId") String orgId,@FormParam("content")String content,@DefaultValue("json") @FormParam("resultType")String resultType );
}

